<?php

namespace App\Http\Controllers\Admin;

use App\Models\AdminModule;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Spatie\Permission\Models\Permission;

class PermissionController extends Controller
{
    public function index( AdminModule $module){
        $modules = $module->get();
      return  view('admin.permission_index',compact('modules'));
    }
}
